package com.star.mapper;

import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.star.domain.UserLogin;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.star.domain.UserRole;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author Star
 * @since 2021-04-21
 */
public interface UserLoginMapper extends BaseMapper<UserLogin> {
    /**
     * 根据用户名密码 进行查询
     * @param userLogin
     * @return
     */
    UserLogin byNameAndPws(UserLogin userLogin);

    /**
     * 根据ID进行查询
     * @param userLogin
     * @return
     */
    UserLogin byLoginId(UserLogin userLogin);

}
